package com.winz.cultureapp.activity;

import android.os.Handler;
import android.view.View;
import android.widget.TextView;

import com.winz.cultureapp.R;
import com.winz.cultureapp.base.BaseAppCompatActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 活动订单
 */
public class ActivityOrderActivity extends BaseAppCompatActivity {
    @BindView(R.id.tv_top_title)
    TextView mTv_top_title;
    @BindView(R.id.tv_name)
    TextView mTv_name;
    @BindView(R.id.tv_order)
    TextView mTv_order;
    @BindView(R.id.tv_time)
    TextView mTv_time;
    @BindView(R.id.tv_adress)
    TextView mTv_address;
    @BindView(R.id.tv_phone)
    TextView mTv_phone;
    @BindView(R.id.tv_money)
    TextView mTv_money;
    @BindView(R.id.tv_all)
    TextView mTv_all;

    Handler handler = new Handler();
    @Override
    protected int contentView() {
        return R.layout.activity_order_acivity;
    }

    @Override
    protected void initViews() {
        setStatusBar(getResources().getColor(R.color.base_color));

        mTv_top_title.setText("订单详情");
    }

    @OnClick({R.id.fl_back,R.id.tv_pay})
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.fl_back:
                finish();
                break;
            case R.id.tv_pay:

                showProgressDialog();
                handler.postDelayed(new Runnable() {
                    @Override
                    public void run() {
                        dismissProgressDialog();
                        showMsg("提交成功");
                    }
                },1000);

                handler.postDelayed(new Runnable() {
                    @Override
                    public void run() {
                        dismissProgressDialog();
                        startActivity(ActvitiyDesActivity.class,true);
                    }
                },1500);

                break;
        }
    }
}
